package com.common.supply.service.impl.extdata;

import com.common.supply.domain.dto.CreditReportDto;
import com.common.supply.service.ICustomerCrsReportService;
import com.common.supply.service.ICustomerXdsReportService;
import com.common.supply.service.IExtCreditService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author cyh
 * @date 2022/5/9 4:40 下午
 */
@Service
@AllArgsConstructor
public class IExtCreditServiceImpl implements IExtCreditService {

    private ICustomerCrsReportService crsReportService;

    private ICustomerXdsReportService xdsReportService;


    @Override
    public void searchCreditReport(CreditReportDto creditReportDto) {
        //判断xds crs 是否存在本地数据 是否超出30天有效期


    }

    @Override
    public Object getLocalCreditReport(String bvn, String account,String isSelNew) {

        //查询最新的报告
        if (CreditReportDto.IS_SEL_NEW_YES.equals(isSelNew)){
            return null;
        }

        crsReportService.getLocalCreditReport(bvn);

        xdsReportService.getLocalCreditReport(bvn);
return null;

    }


}
